/**
 * @date 10:06:07 AM
 * EducationStudentMessage.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Getter;
import lombok.Setter;

/**
 * @class EducationStudentMessage	
 * @author Warren
 * @description
 * @date Nov 19, 2018 
 */
@Entity
@Table(name="education_student_message")
@Getter
@Setter
public class EducationStudentMessage {
	@Id
	@Column(name="id" ,unique=true,nullable=false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@ManyToOne
	@JoinColumn(name="student_id")
	@JsonIgnoreProperties(value = { "school","groups","grade","clazz","password","age","mobile","sex","createDate","createTime","stuToken" })
	private EducationStudent student;
	private String content;
	private Integer messageStatus;
}
